package com.starry.Spring5Demo;

import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.Set;

public class BasicElements {
    private String[] citys;

    private List<String> hobbys;

    private Map<String, String> maps;

    private Set<String> sets;

    private List<Book> books;

    public void setBooks(List<Book> books) {
        this.books = books;
    }

    public void setCitys(String[] citys) {
        this.citys = citys;
    }

    public void setHobbys(List<String> hobbys) {
        this.hobbys = hobbys;
    }

    public void setMaps(Map<String, String> maps) {
        this.maps = maps;
    }

    public void setSets(Set<String> sets) {
        this.sets = sets;
    }

    @Override
    public String toString() {
        return "BasicElements{" +
                "citys=" + Arrays.toString(citys) +
                ", hobbys=" + hobbys +
                ", maps=" + maps +
                ", sets=" + sets +
                ", books=" + books +
                '}';
    }

    public void TestBasic() {
        System.out.println(this.toString());
    }
}
